package cn.zh.service;

import cn.zh.commons.ResponseResult;
import cn.zh.entity.Admin;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AdminService {
    ResponseResult getPersonalInfo(String username);

    ResponseResult editPersonalInfo(Admin admin);

    ResponseResult editPersonalPassword(String oldPassword, String password, HttpServletRequest request);

    ResponseResult adminPage(Integer page, Integer limit, String username);

    ResponseResult addAdmin(Admin admin);

    ResponseResult removeAdmin(List<Integer> ids);

    ResponseResult resetPassword(Integer id);

    ResponseResult getByAdminId(Integer id);

    ResponseResult editAdmin(Admin admin);

    ResponseResult login(String username1, String password1, String captcha, HttpServletRequest request);
}
